package com.csu.mypetstore.api.service;

import com.csu.mypetstore.api.common.CommonResponse;
import com.csu.mypetstore.api.entity.*;
import com.csu.mypetstore.api.vo.ItemVO;
import com.csu.mypetstore.api.vo.OrdersVO;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface OrderService {


    CommonResponse<List<OrdersVO>> getOrdersByUsername(String username);

    CommonResponse<OrdersVO> getOrders(int orderId);

//    CommonResponse<OrdersVO> insertOrders(OrdersVO ordersVO);

    CommonResponse<Orders> updateOrders(Orders orders);

    CommonResponse<OrderStatus> updateOrderStatus(OrderStatus orderStatus);

    CommonResponse<List<LineItem>> getLineItemsByOrderId(int orderId);

    CommonResponse<Orders> insertOrders(Orders orders, HttpSession session);



//    CommonResponse<Sequence> getSequence(Sequence sequence);
//
//    CommonResponse<Sequence> updateSequence(Sequence sequence);

}
